//
//  YDCustomerListCell.m
//  YDTestDrive
//
//  Created by ios on 2017/2/9.
//  Copyright © 2017年 ios. All rights reserved.
//

#import "YDCustomerListCell.h"
#import "YDCustomerListModel.h"


@interface YDCustomerListCell ()

@property (weak, nonatomic) IBOutlet UILabel *customerNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end

@implementation YDCustomerListCell

- (void)setCustomerModel:(YDCustomerListModel *)customerModel
{
    _customerModel = customerModel;
    
    self.customerNameLabel.text = customerModel.customerName;
    
    self.phoneLabel.text = customerModel.customerPhone;
    
    NSDate *date = [NSDate dateWithString:customerModel.doneTimeString format:@"yyyy-MM-dd HH:mm:ss"];
    
    self.timeLabel.text = [NSDate stringWithDate:date format:@"yyyy年MM月dd日"];
    
    
}

@end
